﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PowerPointWebController
{
    class CommandHandler
    {
        public static bool handle(string command, ref string html)
        {
            command = command.ToLower();

            if (command == "prev")
            {
                PowerPointKeyPress.sendLeft();
                return true;
            }
            else if (command == "fwd")
            {
                PowerPointKeyPress.sendRight();
                return true;
            }
            else if (command == "tab")
            {
                PowerPointKeyPress.sendTab();
                return true;
            }
            else if (command == "click")
            {
                PowerPointKeyPress.sendClick();
                return true;
            }
            else if (command == "pres")
            {
                PowerPointKeyPress.showPresentation();
                return true;
            }

            return false;
        }
    }
}
